package com.ruoyi.keno.enums;

public enum BigEnums {


    大("大",0),
    中810("810",1),
    小("小",2);

    private String  big;
    private Integer code;

    BigEnums(String big, int code) {
        this.big = big;
        this.code = code;
    }

    public String getBig() {
        return big;
    }

    public void setBig(String big) {
        this.big = big;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public static String getBigNameByCode(int code) {
        for (BigEnums big : BigEnums.values()) {
            if(big.code==code) {
                return big.big;
            }
        }
        return null;
    }
}
